﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace C4F.DevKit.Bluetooth
{
    namespace FileTransferProfile
    {

        /// <summary>
        /// EventArgs class to be used when an SetCurrentDirectory operation 
        /// completes.
        /// </summary>
        public class SetCurrentDirectoryCompletedEventArgs : AsyncCompletedEventArgs
        {
            #region Private Members

            /// <summary>
            /// The location of the folder on remote device that is to be set
            /// as current folder.
            /// </summary>
            private string remFolderPath;

            #endregion

            #region Public Properties

            /// <summary>
            /// Gets the location of the folder on remote device that is to be set
            /// as current folder.
            /// </summary>
            public string RemoteFolderPath
            {
                get
                { return this.remFolderPath; }
            }


            #endregion

            #region Constructor
            /// <summary>
            /// Initializes the SetCurrentDirectoryCompletedEventArgs object.
            /// </summary>
            /// <param name="remoteFolderPath">The location of the object 
            /// that was pulled.</param>        
            /// <param name="error">An error that occurred during the 
            /// asynchronous operation.</param>
            /// <param name="cancelled">A value indicating whether the 
            /// asynchronous operation was
            /// cancelled.</param>
            /// <param name="userState">The user-supplied state object
            /// supplied when the asynchronous operation was requested.</param>


            public SetCurrentDirectoryCompletedEventArgs(string remoteFolderPath,
                                                         Exception error,
                                                         bool cancelled,
                                                         object userState)
                : base(error, cancelled, userState)
            {
                this.remFolderPath = remoteFolderPath;
            }
            #endregion
        }
    }
}